﻿@using KSUNO_EMS
@{
    var userInfo = MvcApplication.GetCurrentUserInfo();
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/css/reset.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/penn/jquery-ui-1.8.18.custom.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/menu_style.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/slick.grid.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/site.slick.grid.css")" rel="stylesheet" type="text/css" />
    @RenderSection("styles", false)
</head>
<body>
    <div id="topBox">
        <img src="@Url.Content("~/Content/images/logo.png")">
    </div>
    <div id="menuBox">
        <div class="wrapper1">
            <div class="wrapper">
                <div class="nav-wrapper">
                    <div class="nav-left">
                    </div>
                    <div class="nav">
                        <ul id="navigation">
                            @if (userInfo == null)
                            {

                            }
                            else
                            {
                                if (userInfo.Role == "Manager")
                                {
                                <li class="active">
                                    <a href="@Url.Action("Index", "ScheduleManagement")"><span class="menu-left"></span><span class="menu-mid">Schedules</span> <span class="menu-right"></span></a>
                                </li>
                                <li class="active">
                                    <a href="@Url.Action("Index", "TestManagement")"><span class="menu-left"></span><span class="menu-mid">Tests</span> <span class="menu-right"></span></a>
                                </li>
                                <li class="active">
                                    <a href="@Url.Action("Index", "StudyMaterialsManagement")"><span class="menu-left"></span><span class="menu-mid">Study Materials</span> <span class="menu-right"></span></a>
                                </li>
                                <li class="active">
                                    <a href="@Url.Action("Index", "EmployeeManagement")"><span class="menu-left"></span><span class="menu-mid">Employees</span> <span class="menu-right"></span></a>
                                </li>
                                <li class="active">
                                    <a href="@Url.Action("Index", "ManagementJobApplication")"><span class="menu-left"></span><span class="menu-mid">Applications</span> <span class="menu-right"></span></a>
                                </li>
                                }
                                else
                                {
                                <li class="active">
                                    <a href="@Url.Action("Index", "Schedule")"><span class="menu-left"></span><span class="menu-mid">Schedule</span> <span class="menu-right"></span></a>
                                </li>
                                <li class="active">
                                    <a href="@Url.Action("Index", "Testing")"><span class="menu-left"></span><span class="menu-mid">Testing</span> <span class="menu-right"></span></a>
                                </li>
                                <li class="active">
                                    <a href="@Url.Action("Index", "EmployeeProfile")"><span class="menu-left"></span><span class="menu-mid">Profile</span> <span class="menu-right"></span></a>
                                </li>
                                }
                                <li class="active">
                                    <a href="@Url.Action("Logout", "Login")"><span class="menu-left"></span><span class="menu-mid">Logout</span> <span class="menu-right"></span></a>
                                </li>
                            }
                        </ul>
                    </div>
                    <div class="nav-right">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="mainBox" class="ui-corner-all">
        @RenderBody()
    </div>
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.18.penn.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.blockUI.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.event.drag-2.0.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
    <script src="@Url.Content("~/Scripts/json2.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.core.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.checkboxselectcolumn.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.cellrangedecorator.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.cellrangeselector.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.cellcopymanager.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.cellselectionmodel.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.rowselectionmodel.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.rowmovemanager.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.dataview.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.editors.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.customEditors.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.grid.extended.js")"></script>
    <script src="@Url.Content("~/Scripts/slick.grid.js")"></script>
    <script src="@Url.Content("~/js/site.js")"></script>
    <div id="savingBlock" class="blockUI">
        <img src='@Url.Content("~/Content/images/wait22trans.gif")' /><span>Saving...</span>
    </div>
    <div id="loadingBlock" class="blockUI">
        <img src='@Url.Content("~/Content/images/wait22trans.gif")' /><span>Loading...</span>
    </div>
    @RenderSection("scripts", false)
</body>
</html>
